<?php
	$id = $_GET['pid'];
	$cid = $_GET['cid'];
	$db = new Model_mcart;
	$db->del_cart2($id);
	//debug($_SESSION['cart2']);
	$arr = array(
		"chuoi" => serialize($_SESSION['cart2'])
	);
	$db->update_all_cart($arr,$cid);
	redirect(base_url."index.php?mod=order&act=update&cid=".$cid."");
	exit();
?>